package com.yuyou.fn.tms.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@JsonIgnoreProperties(ignoreUnknown = true)
public class FindOrSaveStudentParam extends RequestParam {

    @NotEmpty
    @ApiModelProperty("会员id")
    private String CID ;//会员id

    @NotNull
    @ApiModelProperty("就读年级Id")
    private Long graId ;//就读年级Id

    @ApiModelProperty("就读年级")
    private String graName ;//就读年级

    @ApiModelProperty("所属校区Id")
    private Long deptId ;//所属校区Id

    @ApiModelProperty("所属校区")
    private String deptName ;//所属校区

    @NotEmpty
    @ApiModelProperty("名字")
    private String name ;//名字

    @NotNull
    @ApiModelProperty("0:未设置 1:男 2:女")
    private Integer sex ;//0:未设置 1:男 2:女

    @ApiModelProperty("就读学校")
    private String school;

    @NotEmpty
    @ApiModelProperty("电话")
    private String phone_no ;//电话

    @ApiModelProperty("生日，格式：yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date stuBirthDay;

    public String getCID() {
        return CID;
    }

    public void setCID(String CID) {
        this.CID = CID;
    }

    public Long getGraId() {
        return graId;
    }

    public void setGraId(Long graId) {
        this.graId = graId;
    }

    public String getGraName() {
        return graName;
    }

    public void setGraName(String graName) {
        this.graName = graName;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getPhone_no() {
        return phone_no;
    }

    public void setPhone_no(String phone_no) {
        this.phone_no = phone_no;
    }

    public Date getStuBirthDay() {
        return stuBirthDay;
    }

    public void setStuBirthDay(Date stuBirthDay) {
        this.stuBirthDay = stuBirthDay;
    }
}
